package bigdata;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.Date;

import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import backtype.storm.LocalCluster;

public class SimulationMain {

	public static GuiTest gui;
	public static RunStorm client;
	public static Boolean DEBUG_MODE = true;
	public static SimulationWindow simuFrame;
	
	public static String logPath = "src/bigdata/log1User.txt";
	public static int delayBetweenInputs = 1000;
	public static Date simulationDate = new Date("Mar 11, 2014 8:10:03 AM");
	
	public static void main(String[] args) throws Exception {

		try {
			// Set cross-platform Java L&F (also called "Metal")
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (UnsupportedLookAndFeelException e) {
			// handle exception
		} catch (ClassNotFoundException e) {
			// handle exception
		} catch (InstantiationException e) {
			// handle exception
		} catch (IllegalAccessException e) {
			// handle exception
		}

		gui = new GuiTest();
//		
//		System.out.println(WeightCalculator.normalize(0, 20));
//		System.out.println(WeightCalculator.normalize(1, 20));
//		System.out.println(WeightCalculator.normalize(3, 20));
//		System.out.println(WeightCalculator.normalize(6, 20));
//		System.out.println(WeightCalculator.normalize(10, 20));
//		System.out.println(WeightCalculator.normalize(20, 20));
//		System.out.println(WeightCalculator.normalize(50, 20));
//		System.out.println(WeightCalculator.normalize(100, 20));
//	
//		System.out.println(WeightCalculator.normalize(0, 40));
//		System.out.println(WeightCalculator.normalize(1, 40));
//		System.out.println(WeightCalculator.normalize(3, 40));
//		System.out.println(WeightCalculator.normalize(6, 40));
//		System.out.println(WeightCalculator.normalize(10, 40));
//		System.out.println(WeightCalculator.normalize(20, 40));
//		System.out.println(WeightCalculator.normalize(50, 40));
//		System.out.println(WeightCalculator.normalize(100, 40));
	
		simuFrame= new SimulationWindow();
		
	}

}
